home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005 / CHIP Utilities 2005.iso / dosapps / freedos / doc / undelete / notes.txt < prev    next >
Encoding:
Internet Message Format  |  2002-11-07  |  5.1 KB

  1. Subject: Undelete help screen and a sketch of the howto contents
  2.  
  3. Hi all, here the result of my efforts to cut down the length of the help
  4. screen donated by Emanuele Cipolla to fewer lines :-)
  5.  
  6.  
  7. FreeDOS Undelete - (C) Copyright 2001-2002 Eric Auer <eric@coli.uni.sb.de>
  8. Undelete is free software; it is distributed under the terms of the GNU
  9. General Public License. See COPYING for details.
  10.          
  11. SYNOPSIS: undelete [action] [what] [destination] [optional size]
  12.          
  13. Possible [action]s:               
  14.  
  15. syssave Saves the 1st or 2nd copy of the FAT, boot sector or root
  16.         directory. Select fat1, fat2, boot, or root in [what].
  17. follow  Looks for a (possibly deleted) file starting at the cluster
  18.         [what] and saves data to a file given as [destination]. The     
  19.         output of DIRSAVE helps you to find the right cluster number.
  20. dirsave Like FOLLOW, but saves a directory to a file. Directory [what]
  21.         must be given by absolute path starting with \ OR by cluster
  22.         number. Also shows a technical directory listing on the screen.
  23.  
  24. Specifying [size] is not needed, but you can override the autodetection
  25. by specifying [size] (in clusters for FOLLOW, in sectors for DIRSAVE).
  26.  
  27. [Destination] must be on another drive than the current drive. Data is
  28. always read/recovered from the drive from which undelete is invoked.
  29.  
  30.  
  31.  
  32.  
  33. And here a sketch of the topics I would like to see in the HOWTO.
  34.  
  35. Using undelete to "mirror" important drive data (if your filesystem
  36. gets completely broken, you can try to write back this data):
  37. > Run undelete in syssave mode for all 4 "what" values and keep the
  38. > resulting files in a safe place. On normal systems, you can glue
  39. > them together in the order "boot fat1 fat2 root" to reconstruct
  40. > the first part of your partition, starting with the first sector.
  41. > To write back the data, you could use debug (w command). You can
  42. > also merge saved and existing data with a hex editor, and so on.
  43. > IMPORTANT: While "mirror" data is very helpful to experts that try
  44. > to repair your system, please do not try to write it back if you
  45. > do not exactly know what you are doing!!!
  46.  
  47. Using undelete to find undeleteable files or directories:
  48. > Run undelete in dirsave mode. You will see deleted directory entries
  49. > specially marked, and you will see their cluster numbers on the
  50. > screen. You can redirect screen output to a file, and you will get
  51. > a binary file for further processing by experts (also useful to
  52. > "mirror" the status of that directory, if you fear that it may break
  53. > soon for some reason or another). Dirsave mode is also useful to get
  54. > technically detailled directory listings. They are, however, not very
  55. > readable for humans if the directory in question contains long file
  56. > names. You can also cascade dirsave runs: Run dirsave on an existing
  57. > directory to find the starting cluster of a deleted directory. Then
  58. > run dirsave on that cluster to find deleted or dropped files in that
  59. > deleted directory, and so on. TAKE CARE: Dirsave does only accept
  60. > absolute paths without drive specification. As all undelete modes,
  61. > the source drive is implicitly selected as the drive from which you
  62. > invoke undelete. So those are wrong [what] values: c:\somewhere
  63. > somewhere, .., ..\somewhere, and so on.
  64. > A correct [what] value would be \here\there or 1234 (a cluster number).
  65.  
  66. Using undelete to recover a file:
  67. > Find the starting cluster of the file using dirsave, as explained
  68. > above. Then run undelete follow 1234 x:rescued.bin (for example) to
  69. > save the contents of the deleted file starting on cluster 1234 to
  70. > the file rescued.bin on drive x: - You can either extract deleted or
  71. > existing files. The use of following existing files is that you can
  72. > override the size value (in clusters, undelete tells you how big a
  73. > cluster on the current drive is when you start undelete), so if you
  74. > have accidentally overwritten a long file OLD with a short new file
  75. > NEW, you can find the cluster number of NEW, give the size of OLD
  76. > and then undelete follow will give you a file that starts with the
  77. > contents of NEW but contains the not-overwritten end of OLD as well,
  78. > hopefully. Normal use, following simply deleted files, will normally
  79. > not need a size to be given, but auto-detect the end of the deleted
  80. > file.
  81.  
  82. So far for my ideas on that undelete howto. Feel free to publish the
  83. sketch (for example to the list) if you need something for ripcord and
  84. do not want to wait for the better and more readable version by Emanuele
  85. Cipolla. It would be nice if somebody could provide some sample "screen-
  86. shots", for example
  87. undelete syssave boot >sample-syssave-screenshot.txt
  88. and especially similar files for a practical example of "how do I
  89. recover that one file which I have just deleted in directory
  90. d:\foo\bar\ to my temp directory e:\temp?". Maybe a short example
  91. of how long filenames look in undelete output and which of the
  92. lines then contains the 8.3 version of the filename, too?
  93.  
  94. Greetings, Eric
  95.  
  96.  
  97. PS: Even a "walkthrough" style example of undeleting a single file
  98. could be a very useful bonus.
  99.  
  100.  
  101.  
  102.